using System;
using Microsoft.SPOT;

namespace Gadgeteer.Interfaces
{
    /// <summary>
    /// A single relay module.
    /// </summary>
    public interface IRelay
    {
        /// <summary>
        /// Gets or sets whether the relay is on or off.
        /// </summary>
        bool Enabled { get; set; }  

        /// <summary>
        /// Turns the relay on.
        /// </summary>
        void TurnOn();

        /// <summary>
        /// Turns the relay off.
        /// </summary>
        void TurnOff();
    }
}
